package net.sk.china.city.utils;

import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;

public class ConvertUtil {
    public static <IN, OUT> List<OUT> converList(List<IN> inList, Function<IN, OUT> converter) {
        return inList.stream().map(converter).collect(Collectors.toList());
    }
}
